package com.jiang.log.controller;

import com.jiang.core.common.MSG;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * TestController:
 * </p>
 *
 * @author jiang
 * @since 2022/10/24
 */
@Api(tags = "TestController")
@RequestMapping("/v1/test")
@RestController
public class TestController {

    @ApiOperation(value = "主键查询")
    @GetMapping("/{id}")
    public MSG<?> getById(@PathVariable("id") Long id){
        return MSG.SUCCESS("result:" + id);
    }
}